import {createRouter, createWebHashHistory, createWebHistory} from "vue-router";

const routes = [
    {
        path: '/',
        component: () => import('../../views/chap15/Index.vue'),
    },
    {
        path: '/:pathMatch(.*)*',
        component: () => import('../../views/chap15/Index.vue')
    },
]
const router = createRouter({
    // history: createWebHashHistory(),
    history: createWebHistory(),
    routes, // `routes: routes` 的缩写
})
export default router